/**
 * Created by pc on 2017/3/29.
 */
import Relay from "react-relay";

export default class OrderCensusMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { orderCensus }`;
    }

    getVariables() {
        return {
            argsInput: {

            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on orderCensusPayload {
            orderCensus {
                errorCode
                value
                totalResult
                id
                orderTotalModel{
                    totalCount
                    active30days
                    increasedOrderToday
                    active7days
                }
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
                fragment on orderCensusPayload {
            orderCensus {
                errorCode
                value
                totalResult
                id
                orderTotalModel{
                    totalCount
                    active30days
                    increasedOrderToday
                    active7days
                }
            }
                }
            `]
        }];
    }


}